<?php
use yii\helpers\Url;
use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\SettingsSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Settings';
$this->params['breadcrumbs'][] = $this->title;
?>

<div class="ibox float-e-margins" id="bx_search_form">
    <div class="ibox-title">
      <?php echo \backend\widgets\ActionMenuWidget::widget(); ?>
      <div class="ibox-tools">
        <a class="collapse-link">搜索<i class="fa fa-chevron-down"></i></a>
      </div>
    </div>
    <div class="ibox-content" style="display: none">
      <?php  echo $this->render('_search', ['model' => $searchModel]); ?>
    </div>
</div>

<div class="ibox-content">

    <?= GridView::widget([
        'options' => ['class' => 'grid-view', 'id' => 'grid'],
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            //['class' => 'yii\grid\SerialColumn'],
            [
            'class' => 'yii\grid\CheckboxColumn',
            'multiple'=>true,
            'name' => 'grid',
            'checkboxOptions'=>['class'=>'grid']
            ],

            'id',
            'option_name',
            'option_key',
            'option_val:ntext',
            'created_at:datetime',
            // 'updated_at',
            // 'deleted',

           // ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>

</div>